<template>
  <div class="prism-player" id="player-con"></div>
</template>

<script>
    // https://player.alicdn.com/aliplayer/setting/setting.html
    export default {
        name: "Aliplayer",
        mounted() {
            var player = new Aliplayer({
              "id": "player-con",
              "source": "//player.alicdn.com/video/aliyunmedia.mp4",
              cover: 'https://img.alicdn.com/tps/TB1EXIhOFXXXXcIaXXXXXXXXXXX-760-340.jpg',
              "width": "100%", // 播放器的宽度
              "height": "500px",  // 播放器的高度
              "autoplay": true,  // 是否自动包房
              "isLive": false,  // 是否
              "rePlay": false,
              "playsinline": true,
              "preload": true,
              "controlBarVisibility": "hover",
              "useH5Prism": true
            }, function (player) {
                alert("启动播放视频")
                console.log("The player is created");
              }
            );
        }
    }
</script>

<style scoped>

</style>
